<?php

use think\Route;

Route::post('wxlogin','api/Login/wxlogin');//登陆
Route::post('rider_login','api/Login/rider_login');//骑手登陆
Route::any('splicing_timing','api/Timing/splicing_timing');//拼单处理定时任务
Route::any('not_meal_notice','api/Timing/not_meal_notice');//查询距离取餐时间十分钟前，未取餐的订单

//骑手端
Route::post('rider_pickup_list','api/Rider/rider_pickup_list');//自提验单列表
Route::post('add_stock','api/Rider/add_stock');//添加库存
Route::post('write_off','api/Rider/write_off');//自提验单核销
Route::post('rider_splicing_pickup_list','api/Rider/rider_splicing_pickup_list');//拼单验单列表
Route::post('rider_splicing_pickup','api/Rider/rider_splicing_pickup');//拼单订单取货操作



//首页
Route::post('indexs','api/Index/indexs');//首页
Route::post('notice_list','api/Index/notice_list');//公告
Route::post('meals_address','api/Index/meals_address');//取餐点、取餐时间获取

//订单(自提订单)
Route::post('confirm','api/Order/confirm');//确认订单
Route::post('addorder','api/Order/addorder');//提交订单(自提)
Route::post('order_list','api/Order/order_list');//订单列表
Route::post('order_info','api/Order/order_info');//订单详情

//订单(拼单)
Route::post('splicing_list','api/Splicingorder/splicing_list');//拼单首页(列表)
Route::post('splicing_confirm','api/Splicingorder/splicing_confirm');//拼单-确认订单
Route::post('splicing_addorder','api/Splicingorder/splicing_addorder');//拼单-生成订单
Route::post('splicing_order_list','api/Splicingorder/splicing_order_list');//拼单-订单列表
Route::post('splicing_order_info','api/Splicingorder/splicing_order_info');//拼单-订单详情
Route::post('splicing_order_cancel','api/Splicingorder/splicing_order_cancel');//拼单-取消订单


//活动
Route::post('monthcard_list','api/Activity/monthcard_list');//月卡活动列表
Route::post('monthcard_pay','api/Activity/monthcard_pay');  //月卡活动购买
Route::post('giftpack_list','api/Activity/giftpack_list');  //礼包活动列表
Route::post('giftpack_pay','api/Activity/giftpack_pay');    //礼包活动购买
Route::post('recharge_list','api/Activity/recharge_list');  //充值活动列表
Route::post('recharge_pay','api/Activity/recharge_pay');    //充值活动支付

//个人中心
Route::post('give_bonus','api/Users/give_bonus');//获取下级下单赠送的优惠券
Route::post('receive_give_bonus','api/Users/receive_give_bonus');//领取下级下单赠送的优惠券
Route::post('invitation','api/Users/invitation');//邀请好友页
Route::post('bind','api/Users/bind');//手机号绑定
Route::post('mybonus','api/Users/mybonus');//我的优惠券
Route::post('mywallet','api/Users/mywallet');//我的钱包
Route::post('money_log','api/Users/money_log');//我的账单
Route::post('address_list','api/Users/address_list');//收货地址列表
Route::post('address_add','api/Users/address_add');//添加收货地址
Route::post('address_info','api/Users/address_info');//收货地址详情
Route::post('address_edit','api/Users/address_edit');//编辑收货地址
Route::post('address_del','api/Users/address_del');//删除收货地址
Route::post('get_user_order','api/Users/get_user_order');//获取评价订单
Route::post('addorder_comment','api/Users/addorder_comment');//添加评价
Route::post('apply_invoice','api/Users/apply_invoice');//申请开票
Route::post('refund','api/Users/refund');//申请退款
Route::post('is_bind_phone','api/Users/is_bind_phone');//是否已绑定手机号查询
Route::post('nickname_bind','api/Users/nickname_bind');//昵称绑定

return [
    //别名配置,别名只能是映射到控制器且访问时必须加上请求的方法
    '__alias__'   => [
    ],
    //变量规则
    '__pattern__' => [
    ],
//        域名绑定到模块
//        '__domain__'  => [
//            'admin' => 'admin',
//            'api'   => 'api',
//        ],
];
